<template>
  <div class="body-bg">
    <van-nav-bar>
      <template #left>
        <van-icon
          name="arrow-left"
          style="font-size: 20px"
          @click="$router.back()"
        />
      </template>
      <template #title>
        <h3>安全中心</h3>
      </template>
    </van-nav-bar>
    <img src="@/assets/anquan.png" alt="" style="width: 100%; height: 300px" />

    <van-cell
      :border="false"
      title="紧急联系人"
      value="去设置"
      label="自动行程分享或110报警"
      is-link
      style="font-size: 18px"
      to="/index/safe1"
    />
    <van-cell
      :border="false"
      title="实名认证"
      value="去人脸认证"
      label="提升账号安全保障您的合法权益"
      is-link
      style="margin-top: 10px; font-size: 18px"
      to="/index/safe2"
    />
    <van-cell-group>
      <van-switch-cell
        v-model="checked"
        title="实时位置保护"
        label="开启后，将获取您的准确位置"
        style="margin-top: 10px; font-size: 18px"
      />
    </van-cell-group>
    <van-cell-group>
      <van-switch-cell
        v-model="checked1"
        title="行程录音保护"
        label="授权后，行程中车主端会开启录音并加密上传"
        style="margin-top: 10px; font-size: 18px"
      />
    </van-cell-group>
    <van-cell
      :border="false"
      title="隐私号码保护"
      value="已授权"
      label="授权后将会保护您的行程隐私"
      is-link
      style="margin-top: 10px; font-size: 18px"
      to="/index/Safe3"
    />
  </div>
</template>

<script>
export default {
  data() {
    return {
      checked: false,
      checked1: false,
    };
  },
};
</script>

<style  lang="scss" scoped>
.body-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow-y: auto;
  background: #f0f0f0;
}
.images {
  width: 100%;
  height: 80px;
}
img {
  width: 100%;
  height: 200px;
  // padding: 10px;
}
</style>